
FROM daocloud.io/python 

MAINTAINER "zgd<mr_zhai_sp@126.com>"

WORKDIR /home/app

ENV PIPURL 'https://pypi.douban.com/simple/'
#ADD ./test_flask.py /home/infomation36
#ADD  gunicorn.conf.py /home/infomation36

#ADD ./* /home/infomation36/
#COPY ["arequirements.txt","gunicorn.conf.py","test_flask.py","/home/app/"]
ADD app/* /home/app/
#."/home/app/"

#RUN pip install --upgrade pip -i ${PIPURL} && pip install  project==0.10.1 -i ${PIPURL} && pip install  gunicorn==19.8.1 -i ${PIPURL} && pip install   gevent==1.4.0 -i ${PIPURL}
RUN pip install --upgrade pip -i ${PIPURL}
RUN pip install -r requirements.txt -i ${PIPURL}

#CMD gunicorn -w 4 -b 0.0.0.0:5000 test_flask:app
#运行 gunicorn中的配置文件
CMD gunicorn test_flask:app -c gunicorn.conf.py 


